package com.maxatime.service.impl;

import java.util.List;

import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.maxatime.dao.ExamStudentMapper;
import com.maxatime.pojo.entity.ExamStudent;
import com.maxatime.service.kaoshiService;

@Service
public class kaoshiServiceImpl implements kaoshiService{

	@Autowired
	ExamStudentMapper examStudentMapper;
	

	@Override
	public List<ExamStudent> listData(ExamStudent examStudent) {
		// TODO Auto-generated method stub
	
		List<ExamStudent> list = examStudentMapper.listData(examStudent);
		return list;
	}


	@Override
	public int insertSelective(ExamStudent record) {
		// TODO Auto-generated method stub
		ExamStudent examStudent = new ExamStudent();
		BeanUtils.copyProperties(record, examStudent);
		examStudentMapper.insertSelective(examStudent);
		return 0;
	}


	@Override
	public int deleteByPrimaryKey(Integer pkId) {
		// TODO Auto-generated method stub
		return examStudentMapper.deleteByPrimaryKey(pkId);
	}


	@Override
	public int updateByPrimaryKeySelective(ExamStudent record) {
		// TODO Auto-generated method stub
		return 0;
	}


	@Override
	public ExamStudent findpkId(Integer pkId) {
		// TODO Auto-generated method stub
		
		return examStudentMapper.findpkId(pkId);
	}

}
